li = ["zeno","小白","小黑","小绿","小黑","小黑"]
print(li)
"""
1.集合自动去重(去除重复数据)
2.集合是无序的
3.集合里面不可以存储可变的数据类型(集合本身是一个可变的数据类型)
"""
sets = {"zeno","小白","小黑","小绿","小黑","小黑"}
print(sets)
print(type(sets))  # <class 'set'>

sets2 = set()  # 创建一个空集合
print(sets2)  # {}

sets3 = set(li)  # int("123")  把列表转换成集合的时候自动去重--类型转换
print(sets3)

sets5 = {1,"hello",[1,2,3]}  # unhashable type: 'list'
print(sets5)